package daoyu.apps.pojo.login;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface LoginResMapper {

    LoginResMapper INSTANCE = Mappers.getMapper(LoginResMapper.class);

//    @Mapping(source = "data.openid", target = "data.openid")
//    @Mapping(source = "data.sessionKey", target = "data.sessionKey")
//    @Mapping(source = "data.anonymousOpenid", target = "data.anonymousOpenid")
//    @Mapping(source = "data.unionId", target = "data.unionId")
//    @Mapping(source = "data.dOpenId", target = "data.dOpenId")
    LoginResVO toAppsLoginResVO(LoginResDTO.Data data);
}
